<template>
     <el-container style="height: 100%;">
        <el-header class="header">
            <div class="title">规则管理平台</div>
            <div class="user">用户</div>
            <div class="set">设置</div>
        </el-header>
        <el-container> 
            <el-main class="main">Main</el-main>
            <div class="menus"><menus /></div>
        </el-container>
    </el-container>
</template>
 
 <script>
import menus from '@/components/menus';  

export default {
    name: "home",
    components: {
       menus 
    },
    created(){
        this.hello();
    },
    methods: {
        hello(){
            // 发送 POST 请求
            this.$axios({
                method: 'post',
                url: '/api/drools/hello',
                data: {}
            }).then((result) => {
                debugger
            }).catch((err) => {
               console.log(err);
            });;
        }
    }
}
</script>
<style scoped> 
  .header{
      height: 60px !important; 
      display: flex;
      border-bottom: solid 1px #eee;
      padding: 0;
      margin: 0;
      line-height: 60px;
  }

  .menus{  
      position: absolute;
      height: 100%; 
      height: 100%;
      border-right: solid 1px #eee;
  }
  
  .title{
      font-weight: 500;
      font-size: 18px;
      background-color: #67C23A;
      width: 250px; 
      text-align: center;
      color: #fff;
  }

  .user{
      width: calc(100% - 350px);
  }
</style>